<?php

namespace app\controller;


use app\BaseController;
use think\facade\Db;
use think\facade\Env;

class Index extends BaseController
{
    public function index()
    {
//        dump(Env::get('database_charset'));

        dump(Db::query('select * from `user`'));
    }

    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
}
